#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QLabel>
#include <QMessageBox>
#include <QDebug>
#include "diancan_1.h"
#include <QSqlDatabase>
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
private slots:
    void pushButton_clicked();
    void dc_return();

    void pushButton_2_clicked();
    //void pushButton_3_clicked();

    void on_pushButton_3_clicked();

private:
    Ui::MainWindow *ui;
    QLabel* title;
    QWidget* n;
    diancan_1 dc;
    int sum;
};
#endif // MAINWINDOW_H
